package com.spring.blog.exception;

import com.spring.blog.pojo.response.Result;
import lombok.Data;

@Data
public class BlogException extends RuntimeException{
    //定义项目异常
    private int code;
    private String errMsg;

    public BlogException( int code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }
    public BlogException( String errMsg) {

        this.errMsg = errMsg;
    }
}
